package com.example

fun main() {
    val res = "The name is tony".run { length >= 5 }
    //对比
    val res2 = with("The name is tony") {
        length >= 5
    }
    println(res)
    println(res2)

    val  list1 = listOf(1,2,3,4,5)

    println(list1.getOrElse(6){"afasfdas"})
    println(list1.getOrNull(8))
    println()
}